package com.cyys.service.impl;

import com.cyys.entity.ShoppingCart;
import com.cyys.mapper.ShoppingCartMapper;
import com.cyys.service.ShoppingCartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 购物车 服务实现类
 * </p>
 *
 * @author Long
 * @since 2022-06-13
 */
@Service
public class ShoppingCartServiceImpl extends ServiceImpl<ShoppingCartMapper, ShoppingCart> implements ShoppingCartService {


    @Override
    public int updateNumberById(Integer number, Integer id) {
        return this.baseMapper.updateNumberById(number, id);
    }

    @Override
    public int updateNumberList(Integer user_id) {
        return this.baseMapper.updateNumberList(user_id);
    }

    @Override
    public ShoppingCart findList(Integer id) {
        return this.baseMapper.findList(id);
    }

    @Override
    public List<ShoppingCart> selectUserId(Integer user_id) {
        return this.baseMapper.selectUserId(user_id);
    }
}
